package com.spdd.mt.common.base;

public enum Status {

    // 系统
    SUCCESS("200", "成功"),
    FAILURE("501", "失败"),

    // 业务
    SUCCESS_SERVER("00", "成功"),
    FAILURE_SERVER("99", "失败"),
    AUTH_LOSS("01", "鉴权参数缺失"),
    PACKAGE_LOSS("02", "话费包ID为空"),
    USER_LOSS("03", "分发用户为空"),
    PACKAGE_ERROR("04", "话费包ID错误"),
    PHONE_NUM_ERROR("05", "手机号码格式错误"),
    ORDER_ID_ERROR("06", "订单号为空"),
    ORDER_ID_EXIT("06", "订单号重复"),
    AUTH_ERROR("07", "鉴权信息错误"),
    SIGN_FAIL("08", "签名验证失败"),
    APP_ID_LOSE("09", "APPID已经失效"),
    ORDER_NOT_EXISTS("10", "订单号不存在"),
    DATE_ERROR("11", "日期参数错误"),
    RISK_MANAGE("12", "超出运营商风险控制要求"),
    OPERATOR_ERROR("13", "运营商类型错误"),
    OVER_TIME("14", "TIMESTAMP超过时限"),
    SECRET_KEY_ERROR("15", "SECRET_KEY校验错误"),
    PARAM_LOSS("16", "请求参数缺失"),
    HEADER_LOSS("17", "请求参数HEADER节点缺失"),
    PHONE_ZONE_ERROR("18", "号码归属和所选产品归属不一致"),
    PRICE_ERROR("19", "结算价格不一致"),
    PROVINCE_MAINTAIN("30", "省份维护"),
    PRODUCT_MAINTAIN("205", "产品维护"),
    BALANCE_NOT_ENOUGH("301", "可用余额不足"),
    RECORDING_EXISTS("410", "记录已经存在"),
    REQUEST_PARAM_ERROR("411", "请求参数不合法"),
    ACCOUNT_CANCEL_FAIL("412", "款项撤销失败"),
    PARAM_ERROR("306", "参数不合法"),
    CACHE_DATA_LOADING("601", "缓存数据加载中，请稍后再试"),
    OSS_UPLOAD_FILE_ERROR("1001", "文件上传失败");

    private final String status;

    private final String message;

    Status(String status, String message) {
        this.status = status;
        this.message = message;
    }

    public String status() {
        return status;
    }

    public String message() {
        return message;
    }

}
